import request from '@/utils/request'

// 查询RSS订阅列表
export function listRss(query) {
  return request({
    url: '/information/rss/list',
    method: 'get',
    params: query
  })
}

// 查询RSS订阅详细
export function getRss(id) {
  return request({
    url: '/information/rss/' + id,
    method: 'get'
  })
}

// 新增RSS订阅
export function addRss(data) {
  return request({
    url: '/information/rss',
    method: 'post',
    data: data
  })
}

// 修改RSS订阅
export function updateRss(data) {
  return request({
    url: '/information/rss',
    method: 'put',
    data: data
  })
}

// 删除RSS订阅
export function delRss(id) {
  return request({
    url: '/information/rss/' + id,
    method: 'delete'
  })
}

// 导出RSS订阅
export function exportRss(query) {
  return request({
    url: '/information/rss/export',
    method: 'get',
    params: query
  })
}